package com.qf;

import com.qf.mapper.SysUserMapper;

import com.qf.utils.UUIDUtils;

import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.util.DigestUtils;

import java.nio.charset.StandardCharsets;
import java.util.UUID;

@SpringBootTest
public class test {


    @Test
    public void demo1(){

//        String s1 = Md5Crypt.md5Crypt("123456".getBytes(),"$1$22222222344433");
//        String s2 = Md5Crypt.md5Crypt("123456".getBytes(),UUIDUtils.uuid());
//        String s3 = Md5Crypt.md5Crypt("123456".getBytes(),UUIDUtils.uuid());
//
//        System.out.println(s1);
//        System.out.println(s2);
//        System.out.println(s3);

        String str = "123456"+UUIDUtils.uuid();
        String md5Str = DigestUtils.md5DigestAsHex(str.getBytes());
        String md5Str2 = DigestUtils.md5DigestAsHex(str.getBytes());
        String md5Str3 = DigestUtils.md5DigestAsHex(str.getBytes());



        System.out.println(md5Str);
        System.out.println(md5Str2);
        System.out.println(md5Str3);


    }


}
